{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/ContactItem/index.tsx\";\nimport React from 'react';\nimport classNames from \"classnames\";\nimport { UserItem } from \"../index\";\nimport './ContactItem.scss';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst ContactItem = props => {\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    className: classNames(\"contacts__item\", {\n      \"contacts__item-add-requests\": props.addRequest,\n      \"contacts__item-sent-requests\": props.sentRequest,\n      \"contacts__item-all-accepted\": props.allAccepted\n    }),\n    children: props.currentUser.id === props.contact.toUser.id && /*#__PURE__*/_jsxDEV(UserItem, {\n      profile: props.contact.fromUser\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 16,\n      columnNumber: 17\n    }, this) || /*#__PURE__*/_jsxDEV(UserItem, {\n      profile: props.contact.toUser\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 18,\n      columnNumber: 17\n    }, this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 10,\n    columnNumber: 9\n  }, this);\n};\n_c = ContactItem;\nexport default ContactItem;\nvar _c;\n$RefreshReg$(_c, \"ContactItem\");","map":{"version":3,"names":["React","classNames","UserItem","ContactItem","props","addRequest","sentRequest","allAccepted","currentUser","id","contact","toUser","fromUser"],"sources":["/data/messenger.client/src/components/ContactItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from \"classnames\";\nimport {ContactItemProps} from \"../../models/props/ContactItemProps\";\nimport {UserItem} from \"../index\";\nimport './ContactItem.scss';\n\nconst ContactItem: React.FC<ContactItemProps> = (props) => {\n\n    return (\n        <div className={classNames(\"contacts__item\", {\n            \"contacts__item-add-requests\": props.addRequest,\n            \"contacts__item-sent-requests\": props.sentRequest,\n            \"contacts__item-all-accepted\": props.allAccepted,\n        })}>\n            {(props.currentUser.id === props.contact.toUser.id &&\n                <UserItem profile={props.contact.fromUser} />\n            ) ||\n                <UserItem profile={props.contact.toUser} />\n            }\n        </div>\n    );\n}\n\nexport default ContactItem;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAAQC,QAAQ,QAAO,UAAU;AACjC,OAAO,oBAAoB;AAAC;AAE5B,MAAMC,WAAuC,GAAIC,KAAK,IAAK;EAEvD,oBACI;IAAK,SAAS,EAAEH,UAAU,CAAC,gBAAgB,EAAE;MACzC,6BAA6B,EAAEG,KAAK,CAACC,UAAU;MAC/C,8BAA8B,EAAED,KAAK,CAACE,WAAW;MACjD,6BAA6B,EAAEF,KAAK,CAACG;IACzC,CAAC,CAAE;IAAA,UACGH,KAAK,CAACI,WAAW,CAACC,EAAE,KAAKL,KAAK,CAACM,OAAO,CAACC,MAAM,CAACF,EAAE,iBAC9C,QAAC,QAAQ;MAAC,OAAO,EAAEL,KAAK,CAACM,OAAO,CAACE;IAAS;MAAA;MAAA;MAAA;IAAA,QAAG,iBAE7C,QAAC,QAAQ;MAAC,OAAO,EAAER,KAAK,CAACM,OAAO,CAACC;IAAO;MAAA;MAAA;MAAA;IAAA;EAAG;IAAA;IAAA;IAAA;EAAA,QAE7C;AAEd,CAAC;AAAA,KAfKR,WAAuC;AAiB7C,eAAeA,WAAW;AAAC;AAAA"},"metadata":{},"sourceType":"module"}